//
//  NSString+OcrPExtend.m
//  ocr_plugin
//
//  Created by FXY on 2022/8/3.
//

#import "NSString+OcrPExtend.h"

@implementation NSString (OcrPExtend)

/// 字符串判空
+ (BOOL)isBlankString:(NSString *)string{
    if (string == nil || string == NULL) {
           return YES;
       }
       if ([string isKindOfClass:[NSNull class]]) {
           return YES;
       }
    
       if ([string isKindOfClass:[NSString class]]) {
            if ([[string stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] length]==0) {
                return YES;
            }
       }else{
           return NO;
       }
       return NO;
}

@end
